package com.yauthor.module.time
{
	import flash.events.Event;
	
	public class UtopiaTimeEvent extends Event
	{
		public static var PAGE_TIME_STARTED:String = "PAGE_TIME_STARTED";
		public static var PAGE_TIME_STOPPED:String = "PAGE_TIME_STOPPED";
		
		protected var pageIndex:Number;
		
		public function UtopiaTimeEvent(type:String, pageIndex:Number = -1, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.pageIndex = pageIndex;
		}
		
		/**
		 * Returns current page index.
		 */
		public function getPageIndex():Number{
			return pageIndex;
		}
	}
}